package com.sy.controller;

import com.sy.dto.JsonResult;
import com.sy.mapper.StudentCourseMapper;
import com.sy.sevice.StudentCourseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Yasuda-T
 * @version 1.0
 * @date 2020/9/14 11:07
 * @usage
 */
@RestController
@RequestMapping("searches")
public class StudentCourseController {

    @Autowired
    private StudentCourseService studentCourseService;

    @RequestMapping(value = "", method = RequestMethod.POST)
    public JsonResult getStudentClassInfo() {
        return JsonResult.buildSuccess(200, studentCourseService.getStudentClassInfo());
    }
}
